Skip to content

chore/COMPASS-9709 add sync to compass script#113

Merged
Anemy merged 2 commits intomainfrom
chore/COMPASS-9709-add-sync-to-compass-script
Aug 19, 2025
Merged

chore/COMPASS-9709 add sync to compass script#113
Anemy merged 2 commits intomainfrom
chore/COMPASS-9709-add-sync-to-compass-script

Conversation

@Anemy
Copy link
Copy Markdown
Member

@Anemy Anemy commented Aug 15, 2025

External Links

Description

Adds a script that listens for changes in the diagramming package, builds it, and updates the local Compass node_modules of the diagramming package with the build. This is useful for testing out changes in Compass and making sure they behave as expected.
Requires mongodb-js/compass#7206 in Compass to hot reload.

yarn run sync-to-compass

}),
);

console.log({ packageDir, srcDir, libDir, destDir });
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

leftover?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I found it a bit useful as a way to double check what was changed. Happy to remove it if you find it to be some extra noise.

1_000,
{
leading: true,
trailing: true,
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why both?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why-not-both-why-not

Copy link
Copy Markdown
Member Author

@Anemy Anemy Aug 19, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's a bit quicker when updating one file and then also covers when updating a lot quickly. If we find it refreshing Compass twice we can move it to only be trailing, I'm thinking let's keep an eye on it.

Copy link
Copy Markdown
Collaborator

@paula-stacho paula-stacho left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❤️

@Anemy
Copy link
Copy Markdown
Member Author

Anemy commented Aug 19, 2025

@lchans Going to merge this, happy to make any follow ups on suggestions or changes you might have.

@Anemy Anemy merged commit dfa6994 into main Aug 19, 2025
5 checks passed
@Anemy Anemy deleted the chore/COMPASS-9709-add-sync-to-compass-script branch August 19, 2025 18:17
@lchans
Copy link
Copy Markdown
Contributor

lchans commented Aug 19, 2025

Thanks @Anemy - Looks fine to me, feel free to add me or @adrianhhong to any of the reviews so it pops up on our radar!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants